const Mailer = require('./mailer');
const mailer = new Mailer();

mailer.sendMail('2622011721@qq.com', 'Hello from Node', 'This is a plain text body', '<h1>This is an HTML body</h1>')
    .then(response => console.log('Email sent successfully'))
    .catch(error => console.error('Failed to send email:', error));
